package main

import (
	"crypto/md5"
	"fmt"
)

func main() {
	vMd5 := md5.New()
	vMd5.Write([]byte("hello baby"))
	//加key
	result := vMd5.Sum([]byte("292bf3c832cce2ab5d4f9775596b13bd"))
	fmt.Println(result)                      //[41 43 243 200 50 204 226 171 93 79 151 117 89 107 19 189]
	fmt.Printf("result md5 : %x \n", result) //result md5 :  3239326266336338333263636532616235643466393737353539366231336264292bf3c832cce2ab5d4f9775596b13bd
	//密码-md5加密，

}
